#ifndef __MISS_ERROR_H
#define __MISS_ERROR_H

#ifdef __cplusplus
extern "C"
{
#endif

char* iperf_strerror(int i_errno);

#ifdef __cplusplus
}
#endif

enum
{
    ME_NONE = 0,    //no error

    ME_INITADAPTER = 1,//init net adapter error

    ME_TCP_RECV = 50, //tcp receive error
    ME_TCP_HEADCHEAK = 51, //tcp head check error
    ME_TCP_CREATE = 52, //tcp create error
    ME_TCP_SEND = 53,//tcp send error
    ME_TCP_CLOSE = 54,//tcp close error
    ME_TCP_SET = 55,
    ME_TCP_BIND = 56,
    ME_TCP_LISTEN = 57,
    ME_TCP_CONN = 58,
    ME_TCP_ACCEPT = 59,

    ME_UDP_CREATE = 100,//udp create error
    ME_UDP_ADDR = 101,//udp addr error
    ME_UDP_SEND = 102,//udp send error
    ME_UDP_CLOSE = 103,//udp close error
    ME_UDP_SET = 104,
    ME_UDP_BIND = 105,

    ME_CFGFILE_NOTFOUND = 200,
    ME_CFGFILE_OPEN = 201,

};

#endif